package com.aaa.day113.demo4;

import java.util.ArrayList;
import java.util.List;
import java.util.function.Supplier;

/**
 * @Description:
 * @author:LiWei
 * @date:2022年11月03日10:51
 */
public class TestSupplier {
    public static void main(String[] args) {
        Supplier<String> stringSupplier=()->{
            return "aaaa";
        };
        fun(stringSupplier);

        List list=new ArrayList();
    }
    public static void fun(Supplier<String>supplier){
        String a=supplier.get();
        System.out.println(a);
    }
}
